cmake_minimum_required(VERSION 3.10.2)
project("OpenCVNative")
set(OpenCV_DIR D:/androidstudioproject/opencv-4.5.4-android-sdk/OpenCV-android-sdk/sdk/native/jni)
find_package(OpenCV REQUIRED)
link_directories(${OpenCV_INCLUDE_DIRS})
add_library(
        OpenCVNative
        SHARED
        OpenCVNative.cpp)
find_library(
        log-lib
        log)
target_link_libraries(
        OpenCVNative
        ${OpenCV_LIBS}
        ${log-lib})